<div>
<div class="row">
<h4> <!--Select Category for your Shop--><?php echo $lang['SELECTCATEGORIES'];?></h4>
<span class="input-xlarge">
  <?php 
      $cat_sub = mysql_query("SELECT * FROM tblcategory WHERE parent_id=0");      
    
    //check cate  
    $account = new user_account();
    $account->getting_Id(2); //for ID user
    $category = $account->category;


    ?>
</span>

    
		<?php
		if(isset($category)!=""){
				?>
        <div class="twelve column">
				<div class="alert alert-block alert-error fade in">
					<button data-dismiss="alert" class="close" type="button">x</button>
					<h3 class="alert-heading"><!--Heads up! This alert needs your attention--><?php echo $lang['HEADE_UP_ALERT'];?></h3>
					<p style="font-size:16px;"><blink>You will lost all your product when you change the Category</blink></p>
				  </div>
         </div>         
				<?php
			}
		?> 
    
            
<form action="<?php echo W_ROOT;?>/company/function.php" method="post">
<select name="edit_cat" size="12" id="select">
    <?php
    while ($cat_sub_get = mysql_fetch_assoc($cat_sub))
    {        
        ?>
    <option value="<?php  echo $cat_sub_get['id'];?>" <?php echo ($cat_sub_get['id']==$category)?' selected="selected"':'';?>><?php  echo $cat_sub_get['category_name'];?></option>
    <?php
    }
    ?>
</select>
<div style="display: block; height: 10px;"></div>
<a class="btn right" href="<?php echo W_ROOT;?>/company/dashboard">Cancel</a><input type="submit" name="submit_cat" class="btn btn-primary"value="<?php echo $lang['SUBMIT'] ;?>" />
</form>
    
</div>
</div>
